package com.yxw.live_vod_facade.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(value="PageVodInfoListVO", description="后台查询视频点播信息")
public class PageVodInfoListVO implements Serializable {

    @ApiModelProperty(value="视频发布人ID")
    private Long userId;

    @ApiModelProperty(value="视频ID")
    private Long videoId;

    @ApiModelProperty(value="视频标题")
    private String titel;

    @ApiModelProperty(value="封面地址")
    private String coverUrl;

    @ApiModelProperty(value="播放地址")
    private String playUrl;

    @ApiModelProperty(value="店铺ID")
    private String shopId;

    @ApiModelProperty(value="店铺名称")
    private String shopName;

    @ApiModelProperty(value="时长")
    private BigDecimal duration;

    @ApiModelProperty(value="播放量")
    private Integer playCnt;

    @ApiModelProperty(value="完播率")
    private String completePlatRate;

    @ApiModelProperty(value="评论量")
    private Integer commentCnt;

    @ApiModelProperty(value="点赞量")
    private Integer likeCnt;

    @ApiModelProperty(value="分享量")
    private Integer shareCnt;

    @ApiModelProperty(value="收藏量")
    private Integer collectionCnt;

    @ApiModelProperty(value="发布时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value="是否有上架商品 0:否 1：是")
    private Integer existsProduct;
}
